﻿// -----------------------------------------------------------------------
// Copyright (c) Microsoft Corporation.  All rights reserved.
// -----------------------------------------------------------------------
using System;
using System.ComponentModel.Composition.AttributedModel;
using System.UnitTesting;

namespace System.ComponentModel.Composition.Caching.AttributedModel.UnitTesting
{
    internal class CacheAssert
    {
        public static void AreEqual(AttributedComposablePartDefinition expected, CachedAttributedComposablePartDefinition actual)
        {
            EnumerableAssert.AreEqual(expected.Metadata, actual.Metadata);
            ReflectionAssert.AreSame(expected.PartType, actual.PartType);
            ReflectionAssert.AreSame(expected.Constructor, actual.Constructor);
        }
    }
}
